package com.sijiao.stock.service.impl;

import com.sijiao.stock.service.IStockCacheService;
import org.springframework.stereotype.Service;

@Service
public class StockCacheServiceImpl implements IStockCacheService {
    @Override
    public void updateStock(Long skuId, Long stock) {
        System.out.println("cache update stock");
    }

    @Override
    public boolean consumeStock(Long skuId, Long stock) {
        System.out.println("cache consume stock");
        return false;
    }
}
